import request from '@/utils/request'

export function getFinancialList(data) {
  return request({
    url: 'wishu-financial/product/productInstallment',
    method: 'get',
    params: {}
  })
}


export function getProductRecieveList(data) {
  return request({
    url: 'wishu-financial/product/productRecieve',
    method: 'get',
    params: {}
  })
}



export function getProductProtectList(data) {
  return request({
    url: 'wishu-financial/product/productProtect',
    method: 'get',
    params: {}
  })
}


//添加修改
export function saveOrUpdateJrProduct(data){
  return request({
    url:'wishu-financial/product/saveOrUpdateJrProduct',
    method:'post',
    data: data
  })
}

//获取银行的名称
export function getbankList() {
  return request({
    url: 'wishu-financial/bank/list',
    method: 'get',
    params: {}
  })
}


export function softRemove(data) {
  return request({
    url: 'wishu-financial/product/softRemove',
    method: 'delete',
    params: {
      id : data
    }
  })
}
